package com.lee.boot.head.first.demo.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lee.boot.head.first.demo.dao.UserMapper;
import com.lee.boot.head.first.demo.entity.Role;
import com.lee.boot.head.first.demo.entity.User;
import com.lee.boot.head.first.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {


    @Autowired
    UserMapper userMapper;

    @Override
    public List<Role> listByUsername(String username) {

        return userMapper.listByUsername(username);
    }
}
